package ui.model;

import java.util.Comparator;

import Bean.AchievementBean;
import util.LogUtils;

public class SortAchievementClass implements Comparator {

    public int compare(Object arg0, Object arg1) {
        int flag = 0;
        try {
            AchievementBean.DataBean.ItemsBean user0 = (AchievementBean.DataBean.ItemsBean) arg0;
            AchievementBean.DataBean.ItemsBean user1 = (AchievementBean.DataBean.ItemsBean) arg1;
            if (user0.getTime().compareToIgnoreCase(user1.getTime()) > 0) {
                flag = -1;
            } else {
                flag = 1;
            }
            LogUtils.d("-----------" + flag);
        } catch (Exception e) {
        }
        return flag;
    }
}
